package com.cloudsigns.factorymanager2.media_system.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.cloudsigns.factorymanager2.BaseActivity;
import com.cloudsigns.factorymanager2.R;

public class MediaSystemReceiveOrderItemDetailActivity extends BaseActivity {
    private RelativeLayout rl_back;
    private TextView tv_title;
    private TextView tv_media_type, tv_airport_name;
    private ImageView img_arrow_down;
    private Button btn_receive_order, btn_back_order;

    @Override
    protected void onBaseCreate(Bundle savedInstanceState) {
        setContentView(R.layout.layout_media_system_receive_order_item_detail);
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
        rl_back = findViewById(R.id.rl_back);
        tv_title = findViewById(R.id.tv_title);
        tv_media_type = findViewById(R.id.tv_media_type);
        tv_airport_name = findViewById(R.id.tv_airport_name);
        img_arrow_down = findViewById(R.id.img_arrow_down);
        btn_receive_order = findViewById(R.id.btn_receive_order);
        btn_back_order = findViewById(R.id.btn_back_order);
    }

    @Override
    protected void initData(Bundle savedInstanceState) {
        img_arrow_down.setBackgroundResource(R.mipmap.arrow_down_icon);
    }

    @Override
    public void setListener() {
        rl_back.setOnClickListener(this);
        img_arrow_down.setOnClickListener(this);
        btn_receive_order.setOnClickListener(this);
        btn_back_order.setOnClickListener(this);
    }

    @Override
    public void widgetClick(View view) {
        switch (view.getId()) {
            case R.id.rl_back:
                finish();
                break;
            case R.id.img_arrow_down:
//                if (ll_content.getVisibility() == View.VISIBLE) {
//                    ll_content.setVisibility(View.GONE);
//                    img_arrow_down.setBackgroundResource(R.mipmap.arrow_down_icon);
//                } else {
//                    ll_content.setVisibility(View.VISIBLE);
//                    img_arrow_down.setBackgroundResource(R.mipmap.arrow_top);
//                }
                break;
            // 接收工单
            case R.id.btn_receive_order:
                break;
            // 退回工单
            case R.id.btn_back_order:
                break;
        }
    }
}
